import request from '@/utils/request'

// 查询重大工程基础设施列表
export function getQueryList(query) {
  return request({
    url: '/keyProject/getPage',
    method: 'get',
    params: query
  })
}

// 新增
export function saveDkp(data) {
  return request({
    url: '/keyProject/save',
    method: 'post',
    data
  })
}

// 修改
export function updateDkp(data) {
  return request({
    url: '/keyProject/update',
    method: 'post',
    data
  })
}

// 删除
export function deleteDkp(ids) {
  return request({
    url: '/keyProject/delete/' + ids,
    method: 'post'
  })
}

// 查询某一行的详情
export function getKeyProject(id) {
  return request({
    url: '/keyProject/getKeyProjectById?id=' + id,
    method: 'get'
  })
}